using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class UploadWeiboImgRequest : GeneratedMessageLite<UploadWeiboImgRequest, UploadWeiboImgRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<UploadWeiboImgRequest, UploadWeiboImgRequest.Builder>
		{
			private bool resultIsReadOnly;
			private UploadWeiboImgRequest result;
			protected override UploadWeiboImgRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override UploadWeiboImgRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override UploadWeiboImgRequest DefaultInstanceForType
			{
				get
				{
					return UploadWeiboImgRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public string ClientImgId
			{
				get
				{
					return this.result.ClientImgId;
				}
				set
				{
					this.SetClientImgId(value);
				}
			}
			public uint TotalLen
			{
				get
				{
					return this.result.TotalLen;
				}
				set
				{
					this.SetTotalLen(value);
				}
			}
			public uint StartPos
			{
				get
				{
					return this.result.StartPos;
				}
				set
				{
					this.SetStartPos(value);
				}
			}
			public uint DataLen
			{
				get
				{
					return this.result.DataLen;
				}
				set
				{
					this.SetDataLen(value);
				}
			}
			public ByteString Data
			{
				get
				{
					return this.result.Data;
				}
				set
				{
					this.SetData(value);
				}
			}
			public string Content
			{
				get
				{
					return this.result.Content;
				}
				set
				{
					this.SetContent(value);
				}
			}
			public uint FilterType
			{
				get
				{
					return this.result.FilterType;
				}
				set
				{
					this.SetFilterType(value);
				}
			}
			public uint Flag
			{
				get
				{
					return this.result.Flag;
				}
				set
				{
					this.SetFlag(value);
				}
			}
			public Builder()
			{
				this.result = UploadWeiboImgRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(UploadWeiboImgRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private UploadWeiboImgRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					UploadWeiboImgRequest other = this.result;
					this.result = new UploadWeiboImgRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override UploadWeiboImgRequest.Builder Clear()
			{
				this.result = UploadWeiboImgRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override UploadWeiboImgRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new UploadWeiboImgRequest.Builder(this.result);
				}
				return new UploadWeiboImgRequest.Builder().MergeFrom(this.result);
			}
			public override UploadWeiboImgRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override UploadWeiboImgRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is UploadWeiboImgRequest)
				{
					return this.MergeFrom((UploadWeiboImgRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override UploadWeiboImgRequest.Builder MergeFrom(UploadWeiboImgRequest other)
			{
				return this;
			}
			public override UploadWeiboImgRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override UploadWeiboImgRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(UploadWeiboImgRequest._uploadWeiboImgRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = UploadWeiboImgRequest._uploadWeiboImgRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 32u)
					{
						if (num3 <= 10u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								BaseRequest.Builder builder = BaseRequest.CreateBuilder();
								if (this.result.hasBaseRequest)
								{
									builder.MergeFrom(this.BaseRequest);
								}
								input.ReadMessage(builder, extensionRegistry);
								this.BaseRequest = builder.BuildPartial();
								continue;
							}
						}
						else
						{
							if (num3 == 18u)
							{
								this.result.hasClientImgId = input.ReadString(ref this.result.clientImgId_);
								continue;
							}
							if (num3 == 24u)
							{
								this.result.hasTotalLen = input.ReadUInt32(ref this.result.totalLen_);
								continue;
							}
							if (num3 == 32u)
							{
								this.result.hasStartPos = input.ReadUInt32(ref this.result.startPos_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 50u)
						{
							if (num3 == 40u)
							{
								this.result.hasDataLen = input.ReadUInt32(ref this.result.dataLen_);
								continue;
							}
							if (num3 == 50u)
							{
								this.result.hasData = input.ReadBytes(ref this.result.data_);
								continue;
							}
						}
						else
						{
							if (num3 == 58u)
							{
								this.result.hasContent = input.ReadString(ref this.result.content_);
								continue;
							}
							if (num3 == 64u)
							{
								this.result.hasFilterType = input.ReadUInt32(ref this.result.filterType_);
								continue;
							}
							if (num3 == 72u)
							{
								this.result.hasFlag = input.ReadUInt32(ref this.result.flag_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public UploadWeiboImgRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public UploadWeiboImgRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public UploadWeiboImgRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public UploadWeiboImgRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public UploadWeiboImgRequest.Builder SetClientImgId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasClientImgId = true;
				this.result.clientImgId_ = value;
				return this;
			}
			public UploadWeiboImgRequest.Builder ClearClientImgId()
			{
				this.PrepareBuilder();
				this.result.hasClientImgId = false;
				this.result.clientImgId_ = "";
				return this;
			}
			public UploadWeiboImgRequest.Builder SetTotalLen(uint value)
			{
				this.PrepareBuilder();
				this.result.hasTotalLen = true;
				this.result.totalLen_ = value;
				return this;
			}
			public UploadWeiboImgRequest.Builder ClearTotalLen()
			{
				this.PrepareBuilder();
				this.result.hasTotalLen = false;
				this.result.totalLen_ = 0u;
				return this;
			}
			public UploadWeiboImgRequest.Builder SetStartPos(uint value)
			{
				this.PrepareBuilder();
				this.result.hasStartPos = true;
				this.result.startPos_ = value;
				return this;
			}
			public UploadWeiboImgRequest.Builder ClearStartPos()
			{
				this.PrepareBuilder();
				this.result.hasStartPos = false;
				this.result.startPos_ = 0u;
				return this;
			}
			public UploadWeiboImgRequest.Builder SetDataLen(uint value)
			{
				this.PrepareBuilder();
				this.result.hasDataLen = true;
				this.result.dataLen_ = value;
				return this;
			}
			public UploadWeiboImgRequest.Builder ClearDataLen()
			{
				this.PrepareBuilder();
				this.result.hasDataLen = false;
				this.result.dataLen_ = 0u;
				return this;
			}
			public UploadWeiboImgRequest.Builder SetData(ByteString value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasData = true;
				this.result.data_ = value;
				return this;
			}
			public UploadWeiboImgRequest.Builder ClearData()
			{
				this.PrepareBuilder();
				this.result.hasData = false;
				this.result.data_ = ByteString.Empty;
				return this;
			}
			public UploadWeiboImgRequest.Builder SetContent(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasContent = true;
				this.result.content_ = value;
				return this;
			}
			public UploadWeiboImgRequest.Builder ClearContent()
			{
				this.PrepareBuilder();
				this.result.hasContent = false;
				this.result.content_ = "";
				return this;
			}
			public UploadWeiboImgRequest.Builder SetFilterType(uint value)
			{
				this.PrepareBuilder();
				this.result.hasFilterType = true;
				this.result.filterType_ = value;
				return this;
			}
			public UploadWeiboImgRequest.Builder ClearFilterType()
			{
				this.PrepareBuilder();
				this.result.hasFilterType = false;
				this.result.filterType_ = 0u;
				return this;
			}
			public UploadWeiboImgRequest.Builder SetFlag(uint value)
			{
				this.PrepareBuilder();
				this.result.hasFlag = true;
				this.result.flag_ = value;
				return this;
			}
			public UploadWeiboImgRequest.Builder ClearFlag()
			{
				this.PrepareBuilder();
				this.result.hasFlag = false;
				this.result.flag_ = 0u;
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int ClientImgIdFieldNumber = 2;
		public const int TotalLenFieldNumber = 3;
		public const int StartPosFieldNumber = 4;
		public const int DataLenFieldNumber = 5;
		public const int DataFieldNumber = 6;
		public const int ContentFieldNumber = 7;
		public const int FilterTypeFieldNumber = 8;
		public const int FlagFieldNumber = 9;
		private static readonly UploadWeiboImgRequest defaultInstance;
		private static readonly string[] _uploadWeiboImgRequestFieldNames;
		private static readonly uint[] _uploadWeiboImgRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasClientImgId;
		private string clientImgId_ = "";
		private bool hasTotalLen;
		private uint totalLen_;
		private bool hasStartPos;
		private uint startPos_;
		private bool hasDataLen;
		private uint dataLen_;
		private bool hasData;
		private ByteString data_ = ByteString.Empty;
		private bool hasContent;
		private string content_ = "";
		private bool hasFilterType;
		private uint filterType_;
		private bool hasFlag;
		private uint flag_;
		private int memoizedSerializedSize = -1;
		public static UploadWeiboImgRequest DefaultInstance
		{
			get
			{
				return UploadWeiboImgRequest.defaultInstance;
			}
		}
		public override UploadWeiboImgRequest DefaultInstanceForType
		{
			get
			{
				return UploadWeiboImgRequest.DefaultInstance;
			}
		}
		protected override UploadWeiboImgRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public string ClientImgId
		{
			get
			{
				return this.clientImgId_;
			}
		}
		public uint TotalLen
		{
			get
			{
				return this.totalLen_;
			}
		}
		public uint StartPos
		{
			get
			{
				return this.startPos_;
			}
		}
		public uint DataLen
		{
			get
			{
				return this.dataLen_;
			}
		}
		public ByteString Data
		{
			get
			{
				return this.data_;
			}
		}
		public string Content
		{
			get
			{
				return this.content_;
			}
		}
		public uint FilterType
		{
			get
			{
				return this.filterType_;
			}
		}
		public uint Flag
		{
			get
			{
				return this.flag_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasTotalLen && this.hasStartPos && this.hasDataLen && this.hasFilterType && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasClientImgId)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.ClientImgId);
				}
				if (this.hasTotalLen)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.TotalLen);
				}
				if (this.hasStartPos)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.StartPos);
				}
				if (this.hasDataLen)
				{
					num += CodedOutputStream.ComputeUInt32Size(5, this.DataLen);
				}
				if (this.hasData)
				{
					num += CodedOutputStream.ComputeBytesSize(6, this.Data);
				}
				if (this.hasContent)
				{
					num += CodedOutputStream.ComputeStringSize(7, this.Content);
				}
				if (this.hasFilterType)
				{
					num += CodedOutputStream.ComputeUInt32Size(8, this.FilterType);
				}
				if (this.hasFlag)
				{
					num += CodedOutputStream.ComputeUInt32Size(9, this.Flag);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private UploadWeiboImgRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] uploadWeiboImgRequestFieldNames = UploadWeiboImgRequest._uploadWeiboImgRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, uploadWeiboImgRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasClientImgId)
			{
				output.WriteString(2, uploadWeiboImgRequestFieldNames[1], this.ClientImgId);
			}
			if (this.hasTotalLen)
			{
				output.WriteUInt32(3, uploadWeiboImgRequestFieldNames[8], this.TotalLen);
			}
			if (this.hasStartPos)
			{
				output.WriteUInt32(4, uploadWeiboImgRequestFieldNames[7], this.StartPos);
			}
			if (this.hasDataLen)
			{
				output.WriteUInt32(5, uploadWeiboImgRequestFieldNames[4], this.DataLen);
			}
			if (this.hasData)
			{
				output.WriteBytes(6, uploadWeiboImgRequestFieldNames[3], this.Data);
			}
			if (this.hasContent)
			{
				output.WriteString(7, uploadWeiboImgRequestFieldNames[2], this.Content);
			}
			if (this.hasFilterType)
			{
				output.WriteUInt32(8, uploadWeiboImgRequestFieldNames[5], this.FilterType);
			}
			if (this.hasFlag)
			{
				output.WriteUInt32(9, uploadWeiboImgRequestFieldNames[6], this.Flag);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasClientImgId)
			{
				num ^= this.clientImgId_.GetHashCode();
			}
			if (this.hasTotalLen)
			{
				num ^= this.totalLen_.GetHashCode();
			}
			if (this.hasStartPos)
			{
				num ^= this.startPos_.GetHashCode();
			}
			if (this.hasDataLen)
			{
				num ^= this.dataLen_.GetHashCode();
			}
			if (this.hasData)
			{
				num ^= this.data_.GetHashCode();
			}
			if (this.hasContent)
			{
				num ^= this.content_.GetHashCode();
			}
			if (this.hasFilterType)
			{
				num ^= this.filterType_.GetHashCode();
			}
			if (this.hasFlag)
			{
				num ^= this.flag_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			UploadWeiboImgRequest uploadWeiboImgRequest = object_0 as UploadWeiboImgRequest;
			return uploadWeiboImgRequest != null && (this.hasBaseRequest == uploadWeiboImgRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(uploadWeiboImgRequest.baseRequest_))) && (this.hasClientImgId == uploadWeiboImgRequest.hasClientImgId && (!this.hasClientImgId || this.clientImgId_.Equals(uploadWeiboImgRequest.clientImgId_))) && (this.hasTotalLen == uploadWeiboImgRequest.hasTotalLen && (!this.hasTotalLen || this.totalLen_.Equals(uploadWeiboImgRequest.totalLen_))) && (this.hasStartPos == uploadWeiboImgRequest.hasStartPos && (!this.hasStartPos || this.startPos_.Equals(uploadWeiboImgRequest.startPos_))) && (this.hasDataLen == uploadWeiboImgRequest.hasDataLen && (!this.hasDataLen || this.dataLen_.Equals(uploadWeiboImgRequest.dataLen_))) && (this.hasData == uploadWeiboImgRequest.hasData && (!this.hasData || this.data_.Equals(uploadWeiboImgRequest.data_))) && (this.hasContent == uploadWeiboImgRequest.hasContent && (!this.hasContent || this.content_.Equals(uploadWeiboImgRequest.content_))) && (this.hasFilterType == uploadWeiboImgRequest.hasFilterType && (!this.hasFilterType || this.filterType_.Equals(uploadWeiboImgRequest.filterType_))) && (this.hasFlag == uploadWeiboImgRequest.hasFlag && (!this.hasFlag || this.flag_.Equals(uploadWeiboImgRequest.flag_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<UploadWeiboImgRequest, UploadWeiboImgRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<UploadWeiboImgRequest, UploadWeiboImgRequest.Builder>.PrintField("ClientImgId", this.hasClientImgId, this.clientImgId_, writer);
			GeneratedMessageLite<UploadWeiboImgRequest, UploadWeiboImgRequest.Builder>.PrintField("TotalLen", this.hasTotalLen, this.totalLen_, writer);
			GeneratedMessageLite<UploadWeiboImgRequest, UploadWeiboImgRequest.Builder>.PrintField("StartPos", this.hasStartPos, this.startPos_, writer);
			GeneratedMessageLite<UploadWeiboImgRequest, UploadWeiboImgRequest.Builder>.PrintField("DataLen", this.hasDataLen, this.dataLen_, writer);
			GeneratedMessageLite<UploadWeiboImgRequest, UploadWeiboImgRequest.Builder>.PrintField("Data", this.hasData, this.data_, writer);
			GeneratedMessageLite<UploadWeiboImgRequest, UploadWeiboImgRequest.Builder>.PrintField("Content", this.hasContent, this.content_, writer);
			GeneratedMessageLite<UploadWeiboImgRequest, UploadWeiboImgRequest.Builder>.PrintField("FilterType", this.hasFilterType, this.filterType_, writer);
			GeneratedMessageLite<UploadWeiboImgRequest, UploadWeiboImgRequest.Builder>.PrintField("Flag", this.hasFlag, this.flag_, writer);
		}
		public static UploadWeiboImgRequest ParseFrom(byte[] data)
		{
			return UploadWeiboImgRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private UploadWeiboImgRequest MakeReadOnly()
		{
			return this;
		}
		public static UploadWeiboImgRequest.Builder CreateBuilder()
		{
			return new UploadWeiboImgRequest.Builder();
		}
		public override UploadWeiboImgRequest.Builder ToBuilder()
		{
			return UploadWeiboImgRequest.CreateBuilder(this);
		}
		public override UploadWeiboImgRequest.Builder CreateBuilderForType()
		{
			return new UploadWeiboImgRequest.Builder();
		}
		public static UploadWeiboImgRequest.Builder CreateBuilder(UploadWeiboImgRequest prototype)
		{
			return new UploadWeiboImgRequest.Builder(prototype);
		}
		static UploadWeiboImgRequest()
		{
			UploadWeiboImgRequest.defaultInstance = new UploadWeiboImgRequest().MakeReadOnly();
			UploadWeiboImgRequest._uploadWeiboImgRequestFieldNames = new string[]
			{
				"BaseRequest",
				"ClientImgId",
				"Content",
				"Data",
				"DataLen",
				"FilterType",
				"Flag",
				"StartPos",
				"TotalLen"
			};
			UploadWeiboImgRequest._uploadWeiboImgRequestFieldTags = new uint[]
			{
				10u,
				18u,
				58u,
				50u,
				40u,
				64u,
				72u,
				32u,
				24u
			};
			object.ReferenceEquals(micromsg.Proto.UploadWeiboImgRequest.Descriptor, null);
		}
	}
}
